#ifndef WALKSPEED_H_INCLUDED
#define WALKSPEED_H_INCLUDED
#include <devices_ext/promotion.h>
inline void walkInit(PromPort pl, PromPort pr, PromId leftId, PromId rightId);
inline SpeedPair getCurSpeed(void);
inline void      setCurSpeed(const SpeedPair *p);
inline void      setLeftSpeed(speed_t speed);
inline void      setRightSpeed(speed_t speed);
inline void      setSameSpeed(speed_t speed);
inline void      setRightRev( Bool rev );
inline void      setLefttRev( Bool rev );

inline void      moveLeft(dist_t dist);
inline void      moveRight(dist_t dist);
inline void      moveSame(dist_t dist);
inline void      holdPosition(void);
inline Promotion* getPromLeft(void);
inline Promotion* getPromRight(void);

#ifdef COMP_SPEED_H
#define speedl(s) setLeftSpeed(s)
#define speedr(s) setRightSpeed(s)
#define speed(s)  setSameSpeed(s)
#define movel(dist) moveLeft(dist)
#define mover(dist) moveRight(dist)
#define move(dist)  moveSame(dist)
#endif
#endif  /* WALKSPEED_H_INCLUDED */
